package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.newserverwelfare.NewServerWelfareReward;

import com.yanqu.road.entity.player.UserOnlineTime;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.utils.date.DateHelper;

import java.util.Map;

public class NewServerWelfareBusiness {


    public static Map<Integer, NewServerWelfareReward> getNewServerWelfareRewardMap(int activityId) {
        return DaoHelper.getNewServerWelfareRewardDataDaoImpl().getNewServerWelfareReward(activityId);
    }

    public static UserOnlineTime getUserOnlineTime(int activityId,long userId) {
        return DaoHelper.getUserOnlineTimeDaoImpl().getUserOnlineTime(activityId,userId);
    }

    public static boolean updateUserOnlineTime(UserOnlineTime userOnlineTime) {
        return DaoHelper.getUserOnlineTimeDaoImpl().update(userOnlineTime);
    }

    public static boolean addUserOnlineTime(UserOnlineTime userOnlineTime) {
        return DaoHelper.getUserOnlineTimeDaoImpl().add(userOnlineTime);
    }

    public static boolean addNewServerWelfareReward(NewServerWelfareReward newServerWelfareReward) {
        return DaoHelper.getNewServerWelfareRewardDataDaoImpl().add(newServerWelfareReward);
    }

    public static boolean upDateNewServerWelfareReward(NewServerWelfareReward newServerWelfareReward) {
        return DaoHelper.getNewServerWelfareRewardDataDaoImpl().update(newServerWelfareReward);
    }
}
